//
//  ConstractDetailModel.h
//  SAP
//
//  Created by 中矿科技有限公司 on 17/9/13.
//  Copyright © 2017年 中矿科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>


//基本信息
@interface SAContract : NSObject
/** 合同编号 */
@property (copy, nonatomic) NSString *contractCode;
/** 签约地点 */
@property (copy, nonatomic) NSString *signDate;

@property (copy, nonatomic) NSString *planMark;

@property (copy, nonatomic) NSString *contractType;

@property (copy, nonatomic) NSString *contractStatus;

@property (copy, nonatomic) NSString *signPlace;

@property (copy, nonatomic) NSString *startDate;

@property (copy, nonatomic) NSString *endDate;

@property (copy, nonatomic) NSString *admin;

@property (copy, nonatomic) NSString *Id;

@property (copy, nonatomic) NSString *userId;

@property (copy, nonatomic) NSString *totalNumber;//合同总量

@property (copy, nonatomic) NSString *totalNumberString;//合同总量(单位)

@property (copy, nonatomic) NSString *totalAmount;//合同总金额

@property (copy, nonatomic) NSString *totalAmountString;//合同总金额(单位)

@end

//收货信息
@interface SAReceipt : NSObject

@property (copy, nonatomic) NSString *receivingUnit;

@property (copy, nonatomic) NSString *transportType;

@property (copy, nonatomic) NSString *receivingAddress;

@property (copy, nonatomic) NSString *sendStation;

@property (copy, nonatomic) NSString *targetStation;

@property (copy, nonatomic) NSString *price;

@property (copy, nonatomic) NSString *variety;

@property (copy, nonatomic) NSString *qualityIndex;

@property (copy, nonatomic) NSString *yearTotal;

@property (copy, nonatomic) NSString *m1;

@property (copy, nonatomic) NSString *m2;

@property (copy, nonatomic) NSString *m3;

@property (copy, nonatomic) NSString *m4;

@property (copy, nonatomic) NSString *m5;

@property (copy, nonatomic) NSString *m6;

@property (copy, nonatomic) NSString *m7;

@property (copy, nonatomic) NSString *m8;

@property (copy, nonatomic) NSString *m9;

@property (copy, nonatomic) NSString *m10;

@property (copy, nonatomic) NSString *m11;

@property (copy, nonatomic) NSString *m12;

@end

//买卖人信息
@interface SASellerOrBuyer : NSObject

@property (copy, nonatomic) NSString *name;

@property (copy, nonatomic) NSString *address;

@property (copy, nonatomic) NSString *legalPerson;

@property (copy, nonatomic) NSString *principalAgent;

@property (copy, nonatomic) NSString *bank;

@property (copy, nonatomic) NSString *bankAccount;

@property (copy, nonatomic) NSString *taxRegNumber;

@property (copy, nonatomic) NSString *zipCode;

@property (copy, nonatomic) NSString *phone;

@end

//合同条款
@interface SAProvision  : NSObject

@property (copy, nonatomic) NSString *acceptanceCriteria;

@property (copy, nonatomic) NSString *priceExecutionPeriod;

@property (copy, nonatomic) NSString *settlementMethod;

@property (copy, nonatomic) NSString *breachContract;

@property (copy, nonatomic) NSString *resolveDispute;

@property (copy, nonatomic) NSString *other;

@end

@interface SAflowInstanceHistoryList : NSObject

@property (copy, nonatomic) NSString *nodeDisplayName;

@property (copy, nonatomic) NSString *remark;

@property (copy, nonatomic) NSString *creationTime;

@property (copy, nonatomic) NSString *actionUserName;

@property (copy, nonatomic) NSString *actionName;

+(NSArray *)getOptionsFlowDetailfromData:(NSData *)data;

@end

//流程按钮类表
@interface SAActionList : NSObject

@property (copy, nonatomic) NSString *actionName;

@property (copy, nonatomic) NSString *actionCode;

@property (copy, nonatomic) NSString *remark;

@property (copy, nonatomic) NSString *classifier;

+(NSArray *)getOptionsAcstionListfromData:(NSData *)data;

@end

//下一节点类表
@interface SANextNodeUserList : NSObject

@property (copy, nonatomic) NSString *name;

@property (copy, nonatomic) NSString *phoneNumber;

@property (copy, nonatomic) NSString *Id;

@property (copy, nonatomic) NSString *classifier;

+(NSArray *)getOptionsNextNodeUserListfromData:(NSData *)data;

@end



@interface ConstractDetailModel : NSObject

@property (copy, nonatomic) NSString *office;//办事处

@property (copy, nonatomic) NSString *variety;//

@property (copy, nonatomic) NSString *priceType;//

@property (copy, nonatomic) NSString *contractTypeName;//合同类型

@property (copy, nonatomic) NSString *adminName;//合同销售负责人

@property (copy, nonatomic) NSString *sendStation;//发货铁路站

@property (copy, nonatomic) NSString *targetStation;//到货铁路站

@property (copy, nonatomic) NSString *transportType;//运输方式

@property (copy, nonatomic) NSString *startDateString;//到货铁路站

@property (copy, nonatomic) NSString *endDateString;//运输方式



@property(nonatomic, strong) SAContract *contract;

@property(nonatomic, strong) SAReceipt *receipt;

@property(nonatomic, strong) SASellerOrBuyer *seller;

@property(nonatomic, strong) SASellerOrBuyer *buyer;

@property(nonatomic, strong) SAProvision *provision;

@property(nonatomic, strong) NSMutableArray *monthPlan;

+(ConstractDetailModel *)getGetOptionsDetailfromData:(NSData *)data;

+(NSDictionary *)getGetOptionsDetailDictfromData:(NSData *)data;

@end




